import * as actionTypes from "./action-types"

export function addTodo(text){
    return {
        type : actionTypes.ADD_TODO,
        text
    }
}
export function delTodo(id){
    return {
        type : actionTypes.DEL_TODO,
        id
    }
}